import request from '@/utils/request';

// 修改手机号邮箱     params
export async function upPhonemail(params) {
  return request(`/userInfo/modifyPhoneMail`, {
    method: 'POST',
    data: params,
  });
}

// 修改密码     params   /userInfo/modifyPassword
export async function upPassword(params) {
  return request(`/userInfo/modifyPassword`, {
    method: 'POST',
    data: params,
  });
}

// 更换头像     params
export async function upAvatar(params) {
  return request(`/userInfo/changeAvatar`, {
    method: 'POST',
    data: params,
  });
}
